namespace FileCollection
{
    using System.Collections;
    using System.Collections.Generic;
    using System.IO;

    internal class CompareFileInfoByLength : IComparer<FileInfo>
    {
        public int Compare(FileInfo x, FileInfo y)
        {
            return Comparer.DefaultInvariant.Compare(x.Length, y.Length);
        }
    }
}